package com.yunhe.policyfulfillment.policyful.service;
import com.yunhe.common.exception.ArgumentErrorException;
import com.yunhe.common.model.mybatis.PageResult;
import com.yunhe.policyfulfillment.policyful.domain.PolicyResult;
import com.yunhe.policyfulfillment.policyful.model.PolicyResultQueryCondition;
import com.yunhe.policyfulfillment.policyful.model.PublishStatus;

import java.util.Map;
/**
 * @description 结果公示表
 * @author misty
 * @date 2021-09-17
 */
public interface PolicyResultService {

    /**
     * 新增
     */
    public int createPolicyResult (PolicyResult policyResult) throws ArgumentErrorException;

    /**
     * 删除
     */
    public int deletePolicyResult(int id);

    /**
     * 更新
     */
    public int updatePolicyResult(PolicyResult policyResult);

    /**
     * 根据主键 id 查询
     */
    public PolicyResult findPolicyResultById(int id);


    PageResult findPolicyResultByCondition(PolicyResultQueryCondition policyResultQueryCondition);

    void publishTimedPolicyResult();

    void setPublishStatus(PublishStatus publishStatus);

    PageResult getPolicyResultByCondition(PolicyResultQueryCondition policyResultQueryCondition);
}